﻿Public Class Frm_Tarih
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Frm_Etiket.Degisim_Tarihi = DateTimePicker1.Value
        Me.Close()
    End Sub
    Private Sub Frm_Tarih_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        DateTimePicker1.Value = Now
    End Sub
    Private Sub DateTimePicker1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles DateTimePicker1.KeyDown
        If e.KeyCode = Windows.Forms.Keys.Enter Then
            Frm_Etiket.Degisim_Tarihi = DateTimePicker1.Value
            Me.Close()
        End If
    End Sub
End Class